/**
 * 
 */
package com.sicocre.business.service.impl;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sicocre.beans.Apertura;
import com.sicocre.beans.Banco;
import com.sicocre.beans.Cliente;
import com.sicocre.beans.Detalles;
import com.sicocre.beans.EmpleadoBean;
import com.sicocre.beans.EstadoSolicitud;
import com.sicocre.business.dao.IComboDao;
import com.sicocre.business.service.IComboService;

/**
 * @author lserrano 
 */

@Service
public class ComboServiceImpl implements IComboService {

	@Autowired
	private IComboDao comboDao;
	

	
	/**
	 * @param aperturaoDao the aperturaDao to set
	 */
	public void setComboDao(IComboDao comboDao) {
		this.comboDao = comboDao;
	}
		
	public IComboDao getComboDao() {
		return comboDao;
	}



	/* (non-Javadoc)
	 * @see com.sicocre.business.service.IComboService#consultaCombo(com.sicocre.beans.Banco)
	 */
	public ArrayList<Banco> consultaBancos(int n) {
		// TODO Auto-generated method stub
		return comboDao.consultaBancos(n);
	}
	
	public ArrayList<EmpleadoBean> consultaEmpleado() {
		// TODO Auto-generated method stub
		return comboDao.consultaEmpleado();
	}
	
	public ArrayList<Cliente> consultaCliente() {
		// TODO Auto-generated method stub
		return comboDao.consultaCliente();
	}
	
	public ArrayList<EstadoSolicitud> consultaEstados() {
		// TODO Auto-generated method stub
		return comboDao.consultaEstados();
	}
	
	public ArrayList<Cliente> consultaClienteB() {
		// TODO Auto-generated method stub
		return comboDao.consultaClienteB();
	}
	
	public Cliente consultaClienteDet(int cve) {
		// TODO Auto-generated method stub
		return comboDao.consultaClienteDet(cve);
	}

	public ArrayList<Detalles> consultaDetalle(int cve, int id) {
		// TODO Auto-generated method stub
		return comboDao.consultaDetalle(cve, id);
	}
	
	public ArrayList<Apertura> consultaPago(int cliente) {
		// TODO Auto-generated method stub
		return comboDao.consultaPago(cliente);
	}
	
	public ArrayList<Apertura> conNumAperturas(int cliente) {		
		return comboDao.conNumAperturas(cliente);
	}


	
}
